<!doctype html>
<html class="x-admin-sm">
    <head>
    <meta charset="UTF-8">
    <title><script>document.write(location.search.indexOf("id")>0?"修改分类表":"新增分类表");</script></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1183541_m2b01rduo4l.css">
    <link rel="stylesheet" href="../../../assets/css/xadmin.css">
    <link rel="stylesheet" href="../../../assets/lib/layuiext/module/dtree/dtree.css">
    <link rel="stylesheet" href="../../../assets/lib/layuiext/module/dtree/font/dtreefont.css">
</head>
    <style type="text/css">
        #parentIdCard{position: absolute;max-height: 300px;height: 250px;overflow: auto;width: 100%;z-index: 123;display: none;border:1px solid silver;top: 42px;}
        .layui-show{display: block!important;}
    </style>

    <div class="x-nav">
      <span class="layui-breadcrumb">
          <a href="../../index/welcome.html">首页</a>
          <a><cite>基础资料</cite></a>
          <a href="classList.html">分类表列表</a>
          <a><cite><script>document.write(location.search.indexOf("id")>0?"修改分类表":"新增分类表");</script></cite></a>
      </span>
        <a class="layui-btn layui-btn-sm layui-btn-normal" style="line-height:1.6em;margin-top:4px;float:right"
           href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
    </div>
    <div class="x-body">
            <form id="formForm" style="width: 500px" class="layui-form"  lay-filter="formForm">
                <input type="hidden" name="id">
                <input type="hidden" id="parentId" name="parentId">
                <blockquote class="layui-elem-quote x-form-quote"  >
                    <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" lay-filter="formSubmitFilter"><i  class="iconfont layui-extend-save "></i>保存</button>
                    <button type="button" class="layui-btn  layui-btn-sm layui-btn-primary " onclick="window.location.href='classList.html'"><i  class="iconfont layui-extend-fanhui"></i>返回</button>
                </blockquote>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">分类编码</label>
                        <div class="layui-input-inline">
                            <input type="text" name="classCode"  style="width: 300px;" lay-verify="classCode"  class="layui-input" readonly placeholder="<系统自动生成>" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">分类名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="className" style="width: 300px;" lay-verify="className" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item" id="classType" >
                    <div class="layui-inline">
                        <label class="layui-form-label">分类类型</label>
                        <div class="layui-input-inline" style="width: 300px;">
                            <select name="classType" lay-verify="classType" dist-name="base.Class_ClassTypeEnum" config="" style="width: 300px;">
                                <option value=""></option>
                            </select>

                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">分类排序</label>
                        <div class="layui-input-inline">
                            <input type="number" name="classSeq" lay-verify="classSeq" class="layui-input" style="width: 300px;"/>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">上级名称</label>
                    <div class="layui-input-inline" style="width: 300px">
                        <div class="layui-unselect layui-form-select" id="parentIdDiv">
                            <div class="layui-select-title">
                                <input style="width: 300px;" type="text" name="parentName"  lay-verify="parentName" id="parentName" placeholder="请选择" readonly="" class="layui-input layui-unselect">
                                <i class="layui-edge"></i>
                            </div>
                        </div>
                        <div class="layui-card" id="parentIdCard" >
                            <div class="layui-card-body">
                                <div id="toolbarDiv"><ul id="slTree" class="dtree" data-id="-1" style="width: 50%;"></ul></div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">是否有效</label>
                        <div class="layui-input-inline">
                            <input type="checkbox" name="isValid" lay-skin="switch"  value="1"  lay-text="启用|禁用">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-inline">
                            <input type="text" name="remark" lay-verify="" style="width: 300px;" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <!--<div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmitFilter">保存</button>
                        <button type="button" class="layui-btn layui-btn-primary" onclick="location.href='classList.html'">取消</button>
                    </div>
                </div>-->
            </form>
        </div>
        <script type="text/javascript" src="../../../assets/js/lib.js"></script>
        <script type="text/javascript" src="classForm.js"></script>
        <script>

        </script>
    </body>
</html>



<!--<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title><script>document.write(location.search.indexOf("id")>0?"修改分类表":"新增分类表");</script></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <link rel="stylesheet" href="../../../assets/css/font.css">
    <link rel="stylesheet" href="../../../assets/css/xadmin.css">
    <link rel="stylesheet" href="../../../assets/lib/layuiext/module/dtree/dtree.css">
    <link rel="stylesheet" href="../../../assets/lib/layuiext/module/dtree/font/dtreefont.css">
</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
          <a href="../../index/welcome.html">首页</a>
          <a><cite>基础资料</cite></a>
          <a href="${shortclassname}List.html">分类表列表</a>
          <a><cite><script>document.write(location.search.indexOf("id")>0?"修改分类表":"新增分类表");</script></cite></a>
      </span>
    <a class="layui-btn layui-btn-sm layui-btn-normal" style="line-height:1.6em;margin-top:4px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="x-body">
    <fieldset class="layui-elem-field layui-field-title">
        <legend><script>document.write(location.search.indexOf("id")>0?"修改分类表":"新增分类表");</script></legend>
    </fieldset>
    <form id="formForm"  class="layui-form" action="">
        <input type="hidden" name="id">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">分类编码</label>
                <div class="layui-input-inline">
                    <input type="text" name="classCode" lay-verify="classCode" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">分类名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="className" lay-verify="className" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">分类</label>
                <div class="layui-input-inline">
                   <select name="classType" dist-name="base.Class_ClassTypeEnum" config="">
                       <option value=""></option>
                   </select>

                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">分类排序</label>
                <div class="layui-input-inline">
                    <input type="text" name="classSeq" lay-verify="classSeq" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">上级ID</label>
                <div class="layui-input-inline">
                    <input type="text" name="pId" lay-verify="pId" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">ID路径 /0/</label>
                <div class="layui-input-inline">
                    <input type="text" name="pPathId" lay-verify="pPathId" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">名称路径 /上级名称/</label>
                <div class="layui-input-inline">
                    <input type="text" name="pPathName" lay-verify="pPathName" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否叶子节点</label>
                <div class="layui-input-inline">
                   <select name="isLeaf" dist-name="base.Class_IsLeafEnum" config="">
                       <option value=""></option>
                   </select>

                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">是否有效</label>
                <div class="layui-input-inline">
                   <input type="checkbox" name="isValid" lay-skin="switch"  value="1"  lay-text="启用|禁用">

                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-inline">
                    <input type="text" name="remark" lay-verify="" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmitFilter">保存</button>
                <button type="button" class="layui-btn layui-btn-primary" onclick="location.href='classList.html'">取消</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="../../../assets/js/lib.js"></script>
<script type="text/javascript" src="classForm.js?r=1"></script>
</body>
</html>-->
